package com.drinks.yiniang.adapter.user.invoice;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.drinks.yiniang.R;
import com.drinks.yiniang.adapter.base.BaseQuickRCVAdapter;
import com.drinks.yiniang.entity.shop.MfrsDetailJson;
import com.drinks.yiniang.utils.GlideUtils;
import com.hansen.library.ui.widget.image.CircleImageView;
import com.hansen.library.ui.widget.image.RatioRoundImageView;

import java.util.List;

/**
 * 发票关联商品adapter
 * @author han
 * @date 2019/8/30
 */
public class InvoiceGoodsAdapter extends BaseQuickRCVAdapter<String, BaseViewHolder> {

    public InvoiceGoodsAdapter(Context mContext, @Nullable List<String> data) {
        super(R.layout.item_invoice_list_goods, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        GlideUtils.loadSquareImage(mContext, (RatioRoundImageView) helper.getView(R.id.iv_invoice_list_goods_cover), item);
    }
}
